package org.xfy.ymcc.feign;

import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.xfy.common.result.JsonResult;
import org.xfy.ymcc.feign.fallback.CourseUserLearnFeignClientFallbackFactory;

@FeignClient(value = "service-course",fallbackFactory = CourseUserLearnFeignClientFallbackFactory.class)
public interface CourseUserLearnFeignClient {
    @GetMapping("/courseUserLearn/getCourseUserLearn/{loginId}")
    JsonResult getCourseUserLearn(@PathVariable("loginId")Long loginId);
}
